package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * NotifyReceiveRule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NOTIFY_RECEIVE_RULE")
public class NotifyReceiveRule implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 4560892550858260473L;

    // Fields  
    private Long id;
    private Long notifyRuleId;
    private String user;
    private Integer notifyMode;
    private Integer times;
    private Integer interval;

    // Constructors

    /** default constructor */
    public NotifyReceiveRule() {
    }

    /** minimal constructor */
    public NotifyReceiveRule(Long id) {
        this.id = id;
    }

    /** full constructor */
    public NotifyReceiveRule(Long id, Long notifyRuleId, String user, Integer notifyMode, Integer times, Integer interval) {
        this.id = id;
        this.notifyRuleId = notifyRuleId;
        this.user = user;
        this.notifyMode = notifyMode;
        this.times = times;
        this.interval = interval;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "NOTIFY_RECEIVE_RULE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "NOTIFY_RULE_ID", precision = 18, scale = 0)
    public Long getNotifyRuleId() {
        return this.notifyRuleId;
    }

    public void setNotifyRuleId(Long notifyRuleId) {
        this.notifyRuleId = notifyRuleId;
    }

    @Column(name = "USER_", length = 128)
    public String getUser() {
        return this.user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Column(name = "NOTIFY_MODE", precision = 1, scale = 0)
    public Integer getNotifyMode() {
        return this.notifyMode;
    }

    public void setNotifyMode(Integer notifyMode) {
        this.notifyMode = notifyMode;
    }

    @Column(name = "TIMES", precision = 9, scale = 0)
    public Integer getTimes() {
        return this.times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    @Column(name = "INTERVAL", precision = 9, scale = 0)
    public Integer getInterval() {
        return this.interval;
    }

    public void setInterval(Integer interval) {
        this.interval = interval;
    }

    @Override
    public String toString() {
        return "NotifyReceiveRule [id=" + id + ", notifyRuleId=" + notifyRuleId + ", user=" + user + ", notifyMode=" + notifyMode + ", times=" + times + ", interval=" + interval + "]";
    }

}